home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Win2K Debug 1.xpl < prev    next >
Text File  |  2001-04-26  |  2KB  |  74 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Debugging"
  5. "NAME"="Windows 2K/XP Debugging Options"
  6. "VERSION"="1.62"
  7. "OSVERSION"="0001011"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Log User Environment activity"
  10. "TEXT 2"="Log Remote Boot activity/IntelliMirror activity"
  11. "TEXT 3"="Log Application Management/MSI activity
  12. "DESCRIPTION 1"="Windows 2000 can be configured to log several activities to the Application log (viewable through Event Viewer) for troubleshooting."
  13. "DESCRIPTION 2"=" "
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="http://support.microsoft.com/support/kb/articles/Q186/4/54.asp"
  18.  
  19.  
  20.  
  21. sP="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Diagnostics\"
  22.  
  23. sV1="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Diagnostics\RunDiagnosticLoggingGlobal" 
  24. sV2="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Diagnostics\RunDiagnosticLoggingIntelliMirror" 
  25. sV3="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Diagnostics\RunDiagnosticLoggingAppDeploy" 
  26.  
  27. Sub Plugin_Initialize 
  28.     i=RegReadValue(sV1)
  29.     if i=1 then setuielement 1,true
  30.  
  31.     i=RegReadValue(sV2)
  32.     if i=1 then setuielement 2,true
  33.  
  34.     i=RegReadValue(sV3)
  35.     if i=1 then setuielement 3,true
  36. End Sub
  37.  
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  if GetUIElement(1)=true then
  43.     Call RegWriteValue(sV1,1,2)
  44.  else
  45.     If RegValueExists(sV1) then RegDeleteValue(sV1)
  46.  end if
  47.  
  48.  if GetUIElement(2)=true then
  49.     Call RegWriteValue(sV2,1,2)
  50.  else
  51.     If RegValueExists(sV2) then RegDeleteValue(sV2)
  52.  end if
  53.  
  54.  if GetUIElement(3)=true then
  55.     Call RegWriteValue(sV3,1,2)
  56.  else
  57.     If RegValueExists(sV3) then RegDeleteValue(sV3)
  58.  end if
  59.  
  60. ' if GetUIElement(4)=true then
  61. '    Call RegWriteValue(sV4,1,2)
  62. ' else
  63. '    If RegValueExists(sV4) then RegDeleteValue(sV4)
  64. ' end if
  65.  
  66.  i=RegEnumValues(sP)
  67.  if i=0 then RegDeletePath(sP)
  68.  
  69.  Call Logoff()
  70. End Sub
  71.  
  72. Sub Plugin_Terminate 
  73. End Sub
  74.